package com.capgemini.remind.mapper;

import com.capgemini.core.PageList;
import com.capgemini.remind.pojo.Report;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface ReportMapper {

	List<Report> queryPage(final PageList<Report> pageList);

	List<Report> queryReturnRatePage(final PageList<Report> pageList);

	Report queryReturnRate(@Param("dealerNum") String dealerNum, @Param("startDate") Date startDate,
			@Param("maintenanceItem") String maintenanceItem, @Param("totalCount") int totalCount,
			@Param("oneMonth") int oneMonth, @Param("oneMonthAmount") int oneMonthAmount,
			@Param("twoMonth") int twoMonth, @Param("twoMonthAmount") int twoMonthAmount, @Param("overTwo") int overTwo,
			@Param("threeMonthAmount") int threeMonthAmount);

	Report querySendHistoryAccount(@Param("dealerNum") String dealerNum, @Param("startDate") Date startDate, @Param("tireTotalCount") int tireTotalCount,
			 @Param("tireDup") int tireDup, @Param("engineOilTotalCount") int engineOilTotalCount, @Param("engineOilDup") int engineOilDup,
			 @Param("brakeTotalCount") int brakeTotalCount, @Param("brakeDup") int brakeDup, @Param("maintenanceItem") String maintenanceItem);
}